package vn.edu.saigontech.ncms.web.offering.report;

import java.util.Date;

import vn.edu.saigontech.ncms.model.info.Offering;
import vn.edu.saigontech.ncms.util.DateUtil;

public class OfferingScheduleDetail {
	private String shift;
	private String offeringName;
	private String openDay;
	private String room;
	private String numOfStudent;
	private String instructor;
	private String video;
	private String test;
	private String note;

	public OfferingScheduleDetail(Offering offering) {
		this.shift = offering.getShift().toString();
		this.offeringName = offering.getName();
		Date startDate = offering.getStartDate();
		this.openDay = DateUtil.getDayOfMonth(startDate) + "-" + DateUtil.getMonthAsString(startDate);
		this.room = offering.getRoom().getName();
		this.numOfStudent = offering.getNumberOfActiveStudents() + "";
	}

	public String getInstructor() {
		return instructor;
	}

	public void setInstructor(String instructor) {
		this.instructor = instructor;
	}

	public String getVideo() {
		return video;
	}

	public void setVideo(String video) {
		this.video = video;
	}

	public String getTest() {
		return test;
	}

	public void setTest(String test) {
		this.test = test;
	}

	public String getShift() {
		return shift;
	}

	public void setShift(String shift) {
		this.shift = shift;
	}

	public String getOfferingName() {
		return offeringName;
	}

	public void setOfferingName(String offeringName) {
		this.offeringName = offeringName;
	}

	public String getOpenDay() {
		return openDay;
	}

	public void setOpenDay(String openDay) {
		this.openDay = openDay;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getNumOfStudent() {
		return numOfStudent;
	}

	public void setNumOfStudent(String numOfStudent) {
		this.numOfStudent = numOfStudent;
	}
}
